package dataBase;

import org.hibernate.Session;


public class FolderManager {
	private Session session = null;
	public FolderManager(Session session){
		if (session == null)
			throw new
			RuntimeException("Invalid session object");
		this.session = session;
	}
	public void saveFolder(Folder folder){
		session.save(folder);
	}
	public void updateFolder(Folder folder){
		session.update(folder);
	}
	public void deleteFolder(Folder folder){
		session.delete(folder);
	}
}
